import request from '@/utils/http';
/** 聊天消息列表 */
export const imMsgMessageList = () => {
  return request.post('/imMsg/msgList');
};

/** 用户列表 */
export const imMsgUserList = (data:Object) => {
  return request.post('/imMsg/userList',data);
};
/** 新增聊天对话框 */
export const imMsgUpsertDialog = (data:Object) => {
  return request.post('/imMsg/upsertDialog',data);
};


/** 置顶或取消置顶 */
export const imMsgUserTop = (data:Object) => {
  return request.post('/imMsg/userTop',data);
};

/** 聊天明细列表 */
export const dialogDetailList = (data:Object) => {
  return request.post('/imMsg/dialogDetailList',data);
};

/** 清除未读 */
export const clearUnRead = (data:Object) => {
  return request.post('/imMsg/clearUnRead',data);
};

/** 撤回消息 */
export const giveUpMsg = (data:Object) => {
  return request.post('/imMsg/giveUpMsg',data);
};

/** 获取敏感词 */
export const getSensitiveword = () => {
  return request.post('/sensitiveword/get');
};
/** 修改敏感词 */
export const upsertSensitiveword = (data:Object) => {
  return request.post('/sensitiveword/upsert',data);
};

